package com.my.chapter7;

public class practice1 {
    public static void main(String[] args) {
        Two two = new Two();
        System.out.println(two);
    }
}

class One{
    @Override
    public String toString() {
        return "One";
    }
}

class Two{
    private One one;

    @Override
    public String toString() {
        if(one == null){
            one = new One();
        }
        return "Two"+"; "+one;
    }
}


